package com.mallcloud.mall.admin.mapper;

import com.mallcloud.mall.admin.api.entity.SysUserRole;
import com.mallcloud.mall.common.data.datascope.MallBaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 用户角色表
 */
@Mapper
public interface SysUserRoleMapper extends MallBaseMapper<SysUserRole> {

	/**
	 * 根据用户Id删除该用户的角色关系
	 * @param userId 用户ID
	 */
	Boolean deleteByUserId(@Param("userId") Long userId);

}
